package Buider.demo2;

public class Test {
    public static void main(String[] args) {
        //服务员
        Worker worker = new Worker();
        //默认
        Product product = worker.getProduct();
        System.out.println(product.toString());
        //自由组合
        Product product2 = worker.builderA("全家桶").builderB("雪碧")
                .getProduct();

        System.out.println(product2.toString());

    }
}
